package com.x19i.framework.config;

import org.redisson.api.RedissonClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author Su.Xiaosong
 * @date 2024-08-16
 * @since 1.0
 */
@Configuration
public class RedissonConfigure {

    /**
     * 仅用于sentinel模式
     */
    @Value("${redisson.master-name}")
    private String masterName;
    @Value("${redisson.address}")
    private String address;
    @Value("${redisson.password}")
    private String password;
    @Value("${redisson.database:0}")
    private Integer database;


    @Bean
    public RedissonClient redissonClient(){

        return null;
    }

}
